package com.wkbb.common.enums;

/**
 * @author lizhichao
 * @date 2019/9/26
 * @description
 */
public enum BlacklistReasonEnum {

    /**
     * 公安通缉
     */
    public_security(1,"公安通缉"),

    /**
     * 2安全事件
     */
    SECURITY_INCIDENT(2,"安全事件"),

    /**
     * 3严重违纪
     */
    SERIOUS_DISCIPLINE(3,"严重违纪"),

    /**
     * 4打架斗殴
     */
    STEET_FIGHTS(4,"打架斗殴"),

    /**
     * 5偷盗
     */
    STEAL(5,"偷盗"),

    /**
     * 6其他
     */
    OTHERS(6,"其他");

    private BlacklistReasonEnum(Integer value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    private Integer value;

    private String desc;

    public Integer getValue() {
        return this.value;
    }

    public void setValue(Integer value) {
        this.value = value;
    }

    public String getDesc() {
        return this.desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public static String getDesc(Integer value) {
        for (BlacklistReasonEnum blacklistReasonEnum : BlacklistReasonEnum.values()) {
            if (blacklistReasonEnum.getValue().intValue()==value) {
                return blacklistReasonEnum.getDesc();
            }
        }
        return null;
    }
}
